<?php
/*
  $Id:$
 */
  define('DEBUG_MODE', true);
  error_reporting(DEBUG_MODE ? E_ALL : 0);
  session_start();

  define('ROOT', dirname(__FILE__));
  $php_self = addslashes(basename(htmlspecialchars($_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME'])));

  include 'include/function/general.php';
  include 'include/function/database.php';
  include 'content/config.php';
  
  /* 首页改公司简介 
  if (!isset($_GET['module']) && !isset($_GET['action'])) {
    $_GET['module'] = 'page';
  }*/
  
  $module = isset($_GET['module']) ? $_GET['module'] : 'default';
  $action = isset($_GET['action']) ? $_GET['action'] : 'index';
  
  if (file_exists('module/' . $module . '/' . $action . '.php')) {
    include 'module/' . $module . '/' . $action . '.php';
  } else {
    forward404();
  }